﻿using System;
using System.Linq;

namespace ForumsBrowser.CodeFormatting
{
    public static class CodeFormatterFactory
    {
        public static ICodeFormatter GetFormatter(string format)
        {
            if (format.Contains("x-c#"))
                return new CSharpCodeFormatter();
            return new GenericCodeFormatter();
        }
    }
}
